import Vue from 'vue'
import Router from 'vue-router'
import Home from './Home.vue'
import Login from './components/Login.vue'
import WorkDashboard from './components/WorkDashboard.vue'
import AssetsDashboard from './components/AssetsDashboard.vue'
import Assets from './components/Assets.vue'
import Asset from './components/Asset.vue'
import AssetSystems from './components/AssetSystems.vue'
import ProcessesDashboard from './components/ProcessesDashboard.vue'
import Project from './components/Project.vue'
import ProjectDashboard from './components/ProjectsDashboard.vue'
import AuditsDashboard from './components/AuditsDashboard.vue'
import System from './components/System.vue'
import SystemComponents from './components/SystemComponents.vue'
import Component from './components/Component.vue'
import WorkTimeSheets from './components/WorkTimeSheets.vue'

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/',
            name: 'Home',
            component: Home
        },

        {
            path: '/assets',
            name: 'Assets',
            component: Assets
        },

        {
            path: '/asset/:id',
            name: 'Asset',
            component: Asset
        },
        {
            path: '/asset/:id/systems',
            name: 'AssetSystems',
            component: AssetSystems,
            props: true
        },

        {
            path: '/assets/dashboard',
            name: 'AssetsDashboard',
            component: AssetsDashboard
        },

        {
            path: '/work',
            name: 'WorkDashboard',
            component: WorkDashboard
        },
        {
            path: '/work/timesheets',
            name: 'WorkTimeSheets',
            component: WorkTimeSheets
        },
        {
            path: '/processes',
            name: 'ProcessesDashboard',
            component: ProcessesDashboard
        },
        {
            path: '/audits',
            name: 'AuditsDashboard',
            component: AuditsDashboard
        },
        {
            path: '/system/:id',
            name: 'System',
            component: System
        },
        {
            path: '/system/:id/components',
            name: 'SystemComponents',
            component: SystemComponents
        },
        {
            path: '/component/:id',
            name: 'Component',
            component: Component
        },
        {
            path: '/projects/',
            name: 'ProjectDashboard',
            component: ProjectDashboard
        },
        {
            path: '/project/:id',
            name: 'Project',
            component: Project
        },

    ]
})
